package com.tem.product.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.Version;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 产品图片
 * </p>
 *
 * @author 陈辉
 * @since 2023-11-08
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("product_media")
@ApiModel(value="ProductMedia对象", description="产品图片")
public class ProductMedia implements Serializable {
    private static final long serialVersionUID=899546776458901L;
    @ApiModelProperty(value = "产品图片")
    @TableId(value = "product_media_id", type = IdType.AUTO)
    private Long productMediaId;

    @ApiModelProperty(value = "产品")
    @TableField("product_id")
    private Long productId;

    @ApiModelProperty(value = "图片描述")
    @TableField("media_description")
    private String mediaDescription;

    @ApiModelProperty(value = "排序降序")
    @TableField("seq")
    private Integer seq;

    @ApiModelProperty(value = "地址")
    @TableField("media_url")
    private String mediaUrl;
}
